package com.regex.web.service.sys.impl;
import java.util.List;

import com.regex.web.dao.sys.IRoleDao;
import com.regex.web.entity.sys.RoleDTO;
import com.regex.web.service.sys.IRoleService;
import com.regex.web.utils.Assist;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class RoleServiceImpl implements IRoleService{
    @Autowired
    private IRoleDao iRoleDao;
    @Override
    public long getRoleDTORowCount(Assist assist){
        return iRoleDao.getRoleDTORowCount(assist);
    }
    @Override
    public List<RoleDTO> selectRoleDTO(Assist assist){
        return iRoleDao.selectRoleDTO(assist);
    }
    @Override
    public RoleDTO selectRoleDTOByObj(RoleDTO obj){
        return iRoleDao.selectRoleDTOByObj(obj);
    }
    @Override
    public RoleDTO selectRoleDTOById(Long id){
        return iRoleDao.selectRoleDTOById(id);
    }
    @Override
    public int insertRoleDTO(RoleDTO value){
        return iRoleDao.insertRoleDTO(value);
    }
    @Override
    public int insertNonEmptyRoleDTO(RoleDTO value){
        return iRoleDao.insertNonEmptyRoleDTO(value);
    }
    @Override
    public int insertRoleDTOByBatch(List<RoleDTO> value){
        return iRoleDao.insertRoleDTOByBatch(value);
    }
    @Override
    public int deleteRoleDTOById(Long id){
        return iRoleDao.deleteRoleDTOById(id);
    }
    @Override
    public int deleteRoleDTO(Assist assist){
        return iRoleDao.deleteRoleDTO(assist);
    }
    @Override
    public int updateRoleDTOById(RoleDTO enti){
        return iRoleDao.updateRoleDTOById(enti);
    }
    @Override
    public int updateRoleDTO(RoleDTO value, Assist assist){
        return iRoleDao.updateRoleDTO(value,assist);
    }
    @Override
    public int updateNonEmptyRoleDTOById(RoleDTO enti){
        return iRoleDao.updateNonEmptyRoleDTOById(enti);
    }
    @Override
    public int updateNonEmptyRoleDTO(RoleDTO value, Assist assist){
        return iRoleDao.updateNonEmptyRoleDTO(value,assist);
    }

    public IRoleDao getIRoleDao() {
        return this.iRoleDao;
    }

    public void setIRoleDao(IRoleDao iRoleDao) {
        this.iRoleDao = iRoleDao;
    }

}